package chapter_5;

import chapter_5.aa.Teacher;

public class Test {
    public static void main(String[] args) {
//        Cylinder c = new Cylinder();
//        c.setRadius(10);
//        c.getRadius();
//        String str = new String();
//        String str1 = new String("aa");
//
//        People p = new People("张三");
//        People p1 = new People();
//        People p2 = new People("李四",18,1);
//        Cat cat = Cat.getInstance();
//        Cat cat1 = Cat.getInstance();
//        System.out.println(cat == cat1);
//        Cylinder cylinder = new Cylinder();
//           Teacher teacher = new Teacher();
        People p = new People() {
            @Override
            public String toString() {
                return "";
            }
        };

    }

    public static People getTeacher(People t){
        return  new Teacher();
    }
    public static People  getStudent(People t){
        return  new Student();
    }
}
